package yzserver.sx4a.domain;


import yzserver.sx4a.form.Permission;

public class PermissionDomain {

    private String PERMISSIONID;        //权限ID
    private String PERMISSIONNAME;      //权限中英文名称
    private String PERMISSIONTYPE;      //权限类型 1.功能权限 2数据权限
    private String PERMISSIONPARENT;    //上级权限ID
    private String PERMISSIONDES;       //权限描述
    private String PERMISSIONURL;       //权限访问地址
    private String ENABLE;              //权限是否有效
    private String OPUSER;              //操作人信息


    public PermissionDomain(){

    }

    public PermissionDomain(Permission permission){
        this.PERMISSIONID = permission.getPermissionid();
        this.PERMISSIONNAME = permission.getPermissionname();
        this.PERMISSIONTYPE = permission.getPermissiontype();
        this.PERMISSIONPARENT = permission.getPermissionparent();
        this.PERMISSIONDES = permission.getPermissiondes();
        this.PERMISSIONURL = permission.getPermissionurl();
        this.ENABLE = permission.getEnable();
        this.OPUSER = permission.getOpuser();
    }
    public String getPERMISSIONID() {
        return PERMISSIONID;
    }

    public void setPERMISSIONID(String PERMISSIONID) {
        this.PERMISSIONID = PERMISSIONID;
    }

    public String getPERMISSIONNAME() {
        return PERMISSIONNAME;
    }

    public void setPERMISSIONNAME(String PERMISSIONNAME) {
        this.PERMISSIONNAME = PERMISSIONNAME;
    }

    public String getPERMISSIONTYPE() {
        return PERMISSIONTYPE;
    }

    public void setPERMISSIONTYPE(String PERMISSIONTYPE) {
        this.PERMISSIONTYPE = PERMISSIONTYPE;
    }

    public String getPERMISSIONPARENT() {
        return PERMISSIONPARENT;
    }

    public void setPERMISSIONPARENT(String PERMISSIONPARENT) {
        this.PERMISSIONPARENT = PERMISSIONPARENT;
    }

    public String getPERMISSIONDES() {
        return PERMISSIONDES;
    }

    public void setPERMISSIONDES(String PERMISSIONDES) {
        this.PERMISSIONDES = PERMISSIONDES;
    }

    public String getPERMISSIONURL() {
        return PERMISSIONURL;
    }

    public void setPERMISSIONURL(String PERMISSIONURL) {
        this.PERMISSIONURL = PERMISSIONURL;
    }

    public String getENABLE() {
        return ENABLE;
    }

    public void setENABLE(String ENABLE) {
        this.ENABLE = ENABLE;
    }

    public String getOPUSER() {
        return OPUSER;
    }

    public void setOPUSER(String OPUSER) {
        this.OPUSER = OPUSER;
    }
}
